<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex align-stretch benben-position-layout flex huiyuanshangchengliebiao_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex align-center flex-sub huiyuanshangchengliebiao_fd0_0'>
          <view class='flex align-center justify-center huiyuanshangchengliebiao_fd0_0_c0' @tap.stop="handleJumpDiy"
            data-type="back" data-url="1">
            <text class='fu-iconfont2  huiyuanshangchengliebiao_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex align-center huiyuanshangchengliebiao_fd0_0_c1'>
            <image class='huiyuanshangchengliebiao_fd0_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"615.png"'></image>
            <input class='flex-sub huiyuanshangchengliebiao_fd0_0_c1_c1' type="text" :focus='true'
              :placeholder="`请输入想要搜索的商品`" confirm-type="done" :maxlength="-1"
              placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx" />
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout huiyuanshangchengliebiao_flex_1">
        <view class='flex flex-direction flex-wrap align-center huiyuanshangchengliebiao_fd1_0'>
          <view style="position: relative">
            <swiper ref="benbenSwiperfd1_0_c0" @change="bannerIndexfd1_0_c0 = $event.detail.current"
              class='flex position-relative huiyuanshangchengliebiao_fd1_0_c0' previous-margin="0rpx" next-margin="0rpx"
              :display-multiple-items="1" :interval="5000" :duration="500" :autoplay='true' :circular='true'>


              <swiper-item class='flex  huiyuanshangchengliebiao_fd1_0_c0'>
                <image class='huiyuanshangchengliebiao_fd1_0_c0_c1_c0' mode="aspectFill" :src='STATIC_URL+"95.png"'>
                </image>
              </swiper-item>


            </swiper>
            <view style="position: absolute"
              class="flex dot flex align-center justify-center huiyuanshangchengliebiao_swiperDotfd1_0_c0">
              <template v-for="(item, index) in (1)">
                <view :key="index" v-if="bannerIndexfd1_0_c0 == index"
                  class="flex dot selected flex align-center justify-center huiyuanshangchengliebiao_swiperDotSelectedfd1_0_c0">
                </view>
                <view :key="index" v-else
                  class="flex dot unselected flex align-center justify-center huiyuanshangchengliebiao_swiperDotUnselectedfd1_0_c0">
                </view>
              </template>
            </view>
          </view>
        </view>
        <view class='flex flex-wrap align-stretch huiyuanshangchengliebiao_fd1_1'>
          <view class='flex flex-wrap align-center justify-around huiyuanshangchengliebiao_fd1_1_c0'>
            <view class='flex flex-wrap align-center'>
              <image class='huiyuanshangchengliebiao_fd1_1_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"535.png"'>
              </image>
              <text class='huiyuanshangchengliebiao_fd1_1_c0_c0_c1'>推荐商家</text>
            </view>

            <view class='flex  huiyuanshangchengliebiao_fd1_1_c0_c1'></view>

            <view class='flex flex-wrap align-center'>
              <image class='huiyuanshangchengliebiao_fd1_1_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"536.png"'>
              </image>
              <text class='huiyuanshangchengliebiao_fd1_1_c0_c0_c1'>自由贸易区</text>
            </view>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex benben-flex-layout flex-wrap align-center">
        <view class='flex flex-wrap align-center justify-around huiyuanshangchengliebiao_fd2_0'>
          <view class='flex flex-wrap align-center'>
            <image class='huiyuanshangchengliebiao_fd2_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"535.png"'></image>
            <text class='huiyuanshangchengliebiao_fd2_0_c0_c1'>推荐商家</text>
          </view>

          <view class='flex  huiyuanshangchengliebiao_fd2_0_c1'></view>

          <view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/sy/ziyoumaoyiqu/ziyoumaoyiqu`">
            <image class='huiyuanshangchengliebiao_fd2_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"536.png"'></image>
            <text class='huiyuanshangchengliebiao_fd2_0_c0_c1'>自由贸易区</text>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-center huiyuanshangchengliebiao_fd2_1'>
          <text class='huiyuanshangchengliebiao_fd2_1_c0'>热门商品</text>
          <image class='huiyuanshangchengliebiao_fd2_1_c1' mode="aspectFit" :src='STATIC_URL+"502.png"'></image>
        </view>
        <image class='huiyuanshangchengliebiao_fd2_2' mode="aspectFit" :src='STATIC_URL+"537.png"'></image>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout huiyuanshangchengliebiao_flex_3">
        <view class='flex flex-wrap align-center justify-between huiyuanshangchengliebiao_fd3_0'>
          <template v-for='(item,key0) in dataList'>
            <view class='flex flex-direction flex-wrap align-stretch huiyuanshangchengliebiao_fd3_0_c0' :key='key0'>
              <view class='flex flex-wrap align-center huiyuanshangchengliebiao_fd3_0_c0_c0'>
                <image class='huiyuanshangchengliebiao_fd3_0_c0_c0_c0' mode="aspectFill" :src='item.thumb'></image>
              </view>
              <text class='huiyuanshangchengliebiao_fd3_0_c0_c1'>{{item.name}}</text>
              <view class='flex flex-wrap align-center huiyuanshangchengliebiao_fd3_0_c0_c2'>
                <text class='huiyuanshangchengliebiao_fd3_0_c0_c2_c0'>¥</text>
                <text class=' huiyuanshangchengliebiao_fd3_0_c0_c2_c1'>
                  <text
                    class=' huiyuanshangchengliebiao_price1_fd3_0_c0_c2_c1'>{{ item.shop_price | frontPrice('w') }}</text>
                  <text
                    class=' huiyuanshangchengliebiao_price2_fd3_0_c0_c2_c1'>{{ item.shop_price | laterPrice('w') }}</text>
                </text>
                <text class='huiyuanshangchengliebiao_fd3_0_c0_c2_c2'>{{item.market_price}}</text>
              </view>
            </view>
          </template>
          <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
            :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "bannerIndexfd1_0_c0": 0,
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataList": [],
        "bannerList": []
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getwx64184ac1cafc3Func()
      this.getfv641e624160dd0Func()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //商品管理-商品列表
      getwx64184ac1cafc3Func() {
        this.minixPagingListsApi = global.apiUrls.post64184ac1cafc3;
        this.pageingListApiMethod = 'get';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          is_integral: '1'
        }
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();

      },
      //运营管理-获取轮播图
      async getfv641e624160dd0Func() {
        //请求方法
        //数据验证

        let databannerList = await this.$api.get(global.apiUrls.post641e624160dd0, {
          type: '4'
        });

        if (databannerList.data.code != 1) {
          this.$message.info(databannerList.data.msg);
          return
        }
        let infobannerList = databannerList.data;
        this.bannerList = infobannerList.data

      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: url(image-path('511.png')) no-repeat, #f8f8f8;
    background-size: 100% auto;
  }

  .huiyuanshangchengliebiao_flex_0 {
    background: url(image-path('490.png')) no-repeat;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .huiyuanshangchengliebiao_fd0_0_c1_c1 {
    font-size: 28rpx;
    font-weight: 400;
    color: #333;
    margin: 0rpx 0rpx 0rpx 12rpx;
  }

  .huiyuanshangchengliebiao_fd0_0_c1_c0 {
    width: 28rpx;
    height: 28rpx;
  }

  .huiyuanshangchengliebiao_fd0_0_c1 {
    background: var(--benbenbgColor1);
    height: 64rpx;
    border-radius: 34rpx 34rpx 34rpx 34rpx;
    padding: 0rpx 24rpx 0rpx 24rpx;
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .huiyuanshangchengliebiao_fd0_0_c0_c0 {
    font-size: 32rpx;
    color: #333;
    line-height: 28rpx;
  }

  .huiyuanshangchengliebiao_fd0_0_c0 {
    width: 50rpx;
    height: 50rpx;
  }

  .huiyuanshangchengliebiao_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .huiyuanshangchengliebiao_flex_1 {
    background: url(image-path('490.png')) no-repeat;
    background-size: 100% auto;
  }

  .huiyuanshangchengliebiao_fd1_1_c0_c1 {
    background: #85ce61;
    width: 1rpx;
    height: 30rpx;
    margin: 0rpx 10rpx 0rpx 10rpx;
    transform: scaleX(0.5);
  }

  .huiyuanshangchengliebiao_fd1_1_c0_c0_c1 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 700;
    margin: 0rpx 0rpx 0rpx 12rpx;
  }

  .huiyuanshangchengliebiao_fd1_1_c0_c0_c0 {
    width: 48rpx;
    height: 48rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .huiyuanshangchengliebiao_fd1_1_c0 {
    background: var(--benbenbgColor1);
    margin: 24rpx auto 24rpx auto;
    width: 702rpx;
    background-size: 100% auto;
    height: 110rpx;
  }

  .huiyuanshangchengliebiao_fd1_1 {
    background: url(image-path('490.png')) no-repeat;
    background-size: 100% auto;
  }

  .huiyuanshangchengliebiao_numberfd1_0_c0_c0 {
    background: #525050;
    position: absolute;
    bottom: 20rpx;
    right: 30rpx;
    width: 80rpx;
    height: 40rpx;
    border-radius: 6rpx 6rpx 6rpx 6rpx;
    font-size: 24rpx;
    color: #FFFFFF;
    line-height: 46rpx;
    font-weight: 400;
  }

  .huiyuanshangchengliebiao_fd1_0_c0_c1_c0 {
    width: 702rpx;
    height: 350rpx;
    border-radius: 16rpx;
  }

  .huiyuanshangchengliebiao_fd1_0_c0 {
    width: 702rpx;
    height: 350rpx;
  }

  .huiyuanshangchengliebiao_swiperDotUnselectedfd1_0_c0 {
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    width: 16rpx;
    height: 16rpx;
    border-radius: 100rpx 100rpx 100rpx 100rpx;
    margin: 0rpx 6rpx 0rpx 0rpx;
    font-size: 24rpx;
    color: #fff;
  }

  .huiyuanshangchengliebiao_swiperDotSelectedfd1_0_c0 {
    border: 1px solid #00A7FF;
    background: var(--benbenbgColor1);
    width: 16rpx;
    height: 16rpx;
    border-radius: 100rpx 100rpx 100rpx 100rpx;
    margin: 0rpx 6rpx 0rpx 0rpx;
    font-size: 24rpx;
    color: #fff;
  }

  ::v-deep .huiyuanshangchengliebiao_swiperDotfd1_0_c0 {
    position: absolute;
    bottom: 20rpx;
    left: 0rpx;
    right: 0rpx;
  }

  .huiyuanshangchengliebiao_fd1_0 {
    width: 100%;
    margin: 44rpx 0rpx 23rpx 0rpx;
  }

  .huiyuanshangchengliebiao_fd2_2 {
    width: 114rpx;
    height: 114rpx;
    position: fixed;
    bottom: calc(200rpx + var(--window-bottom));
    right: 32rpx;
    z-index: 9;
  }

  .huiyuanshangchengliebiao_fd2_1_c1 {
    width: 124rpx;
    height: 10rpx;
  }

  .huiyuanshangchengliebiao_fd2_1_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 800;
  }

  .huiyuanshangchengliebiao_fd2_1 {
    padding: 40rpx 0rpx 0rpx 24rpx;
  }

  .huiyuanshangchengliebiao_fd2_0_c1 {
    background: #85ce61;
    width: 1rpx;
    height: 30rpx;
    margin: 0rpx 10rpx 0rpx 10rpx;
    transform: scaleX(0.5);
  }

  .huiyuanshangchengliebiao_fd2_0_c0_c1 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 700;
    margin: 0rpx 0rpx 0rpx 12rpx;
  }

  .huiyuanshangchengliebiao_fd2_0_c0_c0 {
    width: 48rpx;
    height: 48rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .huiyuanshangchengliebiao_fd2_0 {
    background: var(--benbenbgColor1);
    margin: 0rpx auto 0rpx auto;
    width: 702rpx;
    background-size: 100% auto;
    height: 110rpx;
  }

  .huiyuanshangchengliebiao_flex_3 {
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .huiyuanshangchengliebiao_fd3_0_c0_c2_c2 {
    color: #999999;
    font-size: 22rpx;
    font-weight: 400;
    text-decoration: line-through;
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .huiyuanshangchengliebiao_price2_fd3_0_c0_c2_c1 {
    font-size: 28rpx;
  }

  .huiyuanshangchengliebiao_price1_fd3_0_c0_c2_c1 {
    font-size: 32rpx;
  }

  .huiyuanshangchengliebiao_fd3_0_c0_c2_c1 {
    color: rgba(204, 0, 0, 1);
    font-weight: 700;
    font-size: 20rpx;
    line-height: 28rpx;
    margin: 6rpx 0rpx 0rpx 0rpx;
  }

  .huiyuanshangchengliebiao_fd3_0_c0_c2_c0 {
    color: rgba(204, 0, 0, 1);
    font-weight: 600;
    line-height: 28rpx;
  }

  .huiyuanshangchengliebiao_fd3_0_c0_c2 {
    margin: 24rpx 20rpx 0rpx 20rpx;
  }

  .huiyuanshangchengliebiao_fd3_0_c0_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 500;
    padding: 20rpx 20rpx 0rpx 20rpx;
  }

  .huiyuanshangchengliebiao_fd3_0_c0_c0_c0 {
    width: 344rpx;
    height: 346rpx;
    border-radius: 16rpx 16rpx 0rpx 0rpx;
  }

  .huiyuanshangchengliebiao_fd3_0_c0_c0 {
    position: relative;
  }

  .huiyuanshangchengliebiao_fd3_0_c0 {
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    margin: 0rpx 0rpx 20rpx 0rpx;
    padding: 0rpx 0rpx 24rpx 0rpx;
    box-shadow: 0rpx 3rpx 30rpx #E8E8E8;
    width: 344rpx;
  }

  .huiyuanshangchengliebiao_fd3_0 {
    margin: 37rpx 0rpx 0rpx 0rpx;
  }
</style>
